package com.lgc.javathread.joinTest.test1;

public class JoinThread extends Thread {
    public JoinThread(String name) {
        super(name);
    }

    @Override
    public void run() {
//        for (int i=0;i<100;i++){
//            System.out.println(this.getName()+"----i"+i);
//        }

        System.out.println(this.getName() + " 运行");
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        System.out.println(this.getName() + " 结束");
    }
}
